/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package Control;

/**
 *
 * @author Maravillas
 */
public class ToBomb {

    private int[] direction = new int[2];
    private int force = 500;
    private boolean bomb = false;

    public ToBomb() {
        direction[0] = 0;
        direction[1] = -1;
    }

    public void setDirection(String direction) {
        switch (direction) {
            case "left":
                this.direction[0] = -force;
                this.direction[1] = 0;
                break;
            case "right":
                this.direction[0] = force;
                this.direction[1] = 0;
                break;
            case "up":
                this.direction[0] = 0;
                this.direction[1] = -force;
                break;
            case "down":
                this.direction[0] = 0;
                this.direction[1] = force;
                break;
        }
    }

    public int[] getDirection() {
        return direction;
    }

    public boolean isBomb() {
        return bomb;
    }

    public void setBomb(boolean b) {
        bomb = b;
    }

}
